package com.sqy.common;

import java.io.*;

public class Log {
    public static void log(String s) throws IOException {

        FileOutputStream outputStream = new FileOutputStream(Num.LOG_PATH, true);
        BufferedOutputStream buf = new BufferedOutputStream(outputStream);

        buf.write(s.getBytes()); //hello转化为字节数组写入文件
        buf.write("\n".getBytes("UTF-8")); //换行


        buf.close();
        outputStream.close();



    }
}
